﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GeckoPhotos.Tests.Service;
using GeckoPhotos.Models;
using GeckoPhotos.Repository;

namespace GeckoPhotos.Tests.TestUtil
{
    public class InMemoryImageRepository : InMemoryRepository<Image>, IImageRepository
    {

        Image IImageRepository.SingleWithMessages(int imageId)
        {
            return (from i in _items
                    where i.ImageID == imageId
                    select i).Single();
        }

    }
}
